﻿<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>${setting.siteName} - 通知信息表管理</title>
    <meta name="keywords" content="${setting.siteName}">
    <meta name="description" content="${setting.siteName}">

    <!-- BEGIN HEADER -->
    [#include "/admin/include/style.ftl"]
    <!-- END HEADER -->
    <style type="text/css">
        .btn {
            margin: 0 5px;
        }
    </style>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <form id="listForm" action="list.jhtml" method="get">
                    <div class="ibox-title">
                        <h5>通知信息表管理 </h5>
                        [#--<div class="ibox-tools">--]
                            [#--<a class="btn btn-outline btn-success btn-xs" id="btn-add-loippi" href="add.jhtml"><i--]
                                        [#--class="fa fa-plus"></i> 新增</a>--]
                            [#--<a class="btn btn-outline btn-danger btn-xs btn-delete-loippi-group"><i--]
                                        [#--class="fa fa-trash"></i> 删除</a>--]
                        [#--</div>--]
                    </div>
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-sm-6">
                                <div class="input-group">
                                    <input type="text" id="keyword" name="keyword" class="form-search col-sm-2 offset2"
                                           placeholder="请输入消息内容">
                                    <button type="submit" class="btn btn-sm btn-primary loippi-search-button">搜索
                                    </button>
                                    <button type="reset" class="btn btn-sm btn-info">重置</button>
                                </div>
                            </div>
                        </div>
                        <div class="dataTables_wrapper form-inline">
                            <table class="table table-striped table-bordered table-hover dataTables-example dataTable">
                                <thead>
                                <tr>

                                    <th><input type="checkbox" class="i-checks" name="checkAll"></th>
                                    <th>消息内容</th>
                                    <th>发送时间</th>
                                    <th>消息类型</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                [#list page.content as notice]
                                    <tr>
                                        <td>
                                            <input type="checkbox" class="i-checks" name="ids" value="${notice.id}">
                                        </td>
                                        <td>${(notice.content)!''}</td>
                                        <td>${(notice.createTime?string('yyyy-MM-dd'))!''}</td>
                                        <td>
                                            [#if  (notice.type) == 0]
                                                就诊提醒
                                            [#elseif (notice.type == 1)]
                                                订单消息
                                            [#elseif (notice.type == 2)]
                                                其他
                                            [#else]
                                                ''
                                            [/#if]
                                        </td>
                                        <td>
                                            <a href="${base}/admin/notice/view/${notice.id}.jhtml"
                                               class="btn btn-xs btn-default"> ${message("admin.common.view")} </a>

                                            <a style="display: none" class="btn btn-info btn-xs btn-edit-loippi"
                                               data-id="${notice.id}" href="edit/${notice.id}.jhtml"><i
                                                        class="fa fa-paste"></i> ${message("admin.common.edit")} </a>

                                            <a style="display: none" class="btn btn-danger btn-xs btn-delete-loippi"
                                               data-id="${notice.id}"><i
                                                        class="fa fa-trash"></i> ${message("admin.common.delete")} </a>
                                        </td>
                                    </tr>
                                [/#list]
                                </tbody>
                            </table>
                            [@pagination pageNumber = page.pageNumber totalPages = page.totalPages]
                                [#include "/admin/include/pagination.ftl"]
                            [/@pagination]
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<!-- BEGIN Script -->
[#include "/admin/include/script.ftl"]
<!-- END Script -->

<script>

    $(document).ready(function () {
        [@flash_message /]
    });
</script>
</body>

</html>
